﻿using System.ComponentModel.DataAnnotations;

namespace Sample.JwtBearer.Api.Requests;

/// <summary>
/// 注册请求 DTO
/// </summary>
public class RegisterRequest
{
    /// <summary>
    /// 用户名
    /// </summary>
    [Required(ErrorMessage = "用户名必填")]
    public string UserName { get; set; } = string.Empty;

    /// <summary>
    /// 账号
    /// </summary>
    [Required(ErrorMessage = "账号必填")]
    public string Account { get; set; } = string.Empty;

    /// <summary>
    /// 密码
    /// </summary>
    [Required(ErrorMessage = "密码必填")]
    public string Password { get; set; } = string.Empty;

    /// <summary>
    /// 联系电话
    /// </summary>
    public string PhoneNumber { get; set; } = string.Empty;

    /// <summary>
    /// 邮箱
    /// </summary>
    public string Email { get; set; } = string.Empty;

    /// <summary>
    /// 地址
    /// </summary>
    public string Address { get; set; } = string.Empty;

   
}